﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class SMSG_THREAT_UPDATE_DEF : DefinitionBase
    {
        public override bool Process()
        {
            ResetPosition();
            ulong guid = popGuid();
            UInt32 UInt32_1 = ReadUInt32();
            UInt32 UInt32_2 = ReadUInt32();
            UInt32 UInt32_3 = ReadUInt32();
            return Validate();
        }
    }

    public class SMSG_THREAT_CLEAR_DEF : DefinitionBase
    {
        public override bool Process()
        {
            ResetPosition();
            ulong guid = popGuid();
            return Validate();
        }
    }

    public class SMSG_THREAT_REMOVE_DEF : DefinitionBase
    {
        public override bool Process()
        {
            ResetPosition();
      
            return Validate();
        }
    }

    public class SMSG_HIGHEST_THREAT_UPDATE_DEF : DefinitionBase
    {
        public override bool Process()
        {
            ResetPosition();

            var Targetguid = popGuid();
            var hostileguid = popGuid();
            var count = ReadUInt32();

            for (int i = 0; i < count; i++)
            {
                var unitguid = popGuid();
                var threat = ReadUInt32();
            }

            return Validate();
        }
    }
}







